<%@ Page Language="C#" MasterPageFile="~/Site.master" Theme="Default" EnableTheming="true" 
    AutoEventWireup="true" CodeFile="EditProfile.aspx.cs" Inherits="EditProfile" 
    Title="Dr. Yurttas' Office Library &mdash; Edit Profile" %>
<asp:Content ID="ContentAdmin" ContentPlaceHolderID="MasterContentAdmin" Runat="Server">
    <asp:LoginView ID="LoginViewAdmin" runat="server">
        <RoleGroups>
            <asp:RoleGroup Roles="admin">
                <ContentTemplate>
                As an admin, your email is stored in Web.config.  The email address associated with 
                your membership name is not used to send out email notifications.
                </ContentTemplate>
            </asp:RoleGroup>
        </RoleGroups>
    </asp:LoginView>
</asp:Content>
<asp:Content ID="ContentUser" ContentPlaceHolderID="MasterContentUser" Runat="Server">
    <asp:LoginView ID="LoginViewUser" runat="server">
        <RoleGroups>
            <asp:RoleGroup Roles="user">
                <ContentTemplate>
                    <asp:ChangePassword ID="ChangePassword1" runat="server" Width="290px">
                        <SuccessTemplate>
                            <table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse">
                                <tr>
                                    <td>
                                        <table border="0" cellpadding="0">
                                            <tr>
                                                <td align="center" colspan="2" style="font-weight: bold; 
                                                    font-size: 0.9em; color: white; background-color: #5d7b9d">
                                                    Change Password Complete</td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    Your password has been changed!</td>
                                            </tr>
                                            <tr>
                                                <td align="right" colspan="2">
                                                    <asp:Button ID="ContinuePushButton" runat="server" 
                                                        CausesValidation="False" CommandName="Continue"
                                                        PostBackUrl="~/Default.aspx" Text="Continue" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </SuccessTemplate>
                    </asp:ChangePassword>
                    <br />
                    <asp:Panel runat="server" ID="panel64" Width="300px">
                        <table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" 
                            width="100%">
                            <tr>
                                <td>
                                    <table border="0" cellpadding="0" width="100%">
                                        <tr>
                                            <td align="center" colspan="2" style="font-weight: bold; 
                                                font-size: 0.9em; color: white; background-color: #5d7b9d">
                                                Change Your E-mail Address</td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:TextBox runat="server" ID="changeBox" CausesValidation="false" >
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" colspan="2">
                                                <asp:Button ID="changeEmailButton" runat="server" 
                                                    CausesValidation="False" CommandName="Change"
                                                    OnClick="changeEmailButton_Click" Text="Change E-mail" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </ContentTemplate>
            </asp:RoleGroup>
        </RoleGroups>
    </asp:LoginView>
</asp:Content>
<asp:Content ID="ContentAnonymous" ContentPlaceHolderID="MasterContentAnonymous" Runat="Server">
    <asp:LoginView ID="LoginViewAnonymous" runat="server">
        <AnonymousTemplate>
        Anonymous has no profile, that's why you're Anonymous.
        </AnonymousTemplate>
    </asp:LoginView>
</asp:Content>